package view;

import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class View extends JFrame{

	public static final int SIZE_X = 1000;
	public static final int SIZE_Y = 1000;
	
	private JPanel center;
	
	public View(String name){
		this.setTitle(name);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		Dimension d = new Dimension(SIZE_X, SIZE_Y);
		this.setSize(d);
		this.setPreferredSize(d);
		this.setVisible(true);
		add(center = new JPanel(new BorderLayout()));
	}
	
	public void addCenter(Component c, String value){
		center.add(c, value);
	}
	
}
